import { RouteRecordRaw } from 'vue-router'
export const viewRoutes: RouteRecordRaw[] = [
  {
    name: '/',
    path: '/home',
    meta: {
      type: 'menu',
      icon: 'house',
      title: '首页',
    },
    component: () => import('@src/views/home/index.vue'),
  },
  {
    name: 'manage',
    path: 'manage',
    meta: {
      type: 'menu',
      icon: 'operation',
      title: '系统管理',
    },
    component: () => import('@src/components/RouteViews/index.vue'),
    children: [
      {
        name: 'user',
        path: '/manage/user',
        meta: {
          role: ['admin'],
          icon: 'user',
          title: '用户管理',
        },
        component: () => import('@src/views/manage/user/index.vue'),
      },
      {
        name: 'routes',
        path: '/manage/routes',
        meta: {
          role: ['admin'],
          icon: 'Notebook',
          title: '路由管理',
        },
        component: () => import('@src/views/manage/routes/index.vue'),
      },
    ],
  },
  {
    path: 'low-code',
    name: 'low-code',
    meta: {
      type: 'menu',
      icon: 'DataBoard',
      title: '低代码开发',
    },
    component: () => import('@src/views/lowCode/index.vue'),
  },
  {
    path: 'gpt',
    name: 'gpt',
    meta: {
      type: 'menu',
      icon: 'ChatLineSquare',
      title: 'GPT',
    },
    component: () => import('@src/views/gpt/index.vue'),
  },
  {
    path: 'xunfei',
    name: 'xunfei',
    meta: {
      type: 'menu',
      icon: 'Share',
      title: '讯飞',
    },
    component: () => import('@src/views/xunfei/index.vue'),
  },
]
